home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / develop™ Technical Journal / develop Issue 28 code / Merge_Tools.sit / Merge Tools / Difference.c < prev    next >
MacBinary  |  1996-03-08  |  11.5 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Fri Mar 8 11:55:20 1996, modified Fri Mar 8 11:55:20 1996, creator 'MPS ', type ASCII, 11052 bytes "Difference.c" , at 0x2bac 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 44 69 66 66 65 72 | 65 6e 63 65 2e 63 00 00 |..Differ|ence.c..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 2b 2c 00 | 00 01 ac ad 66 16 f8 ad |.....+,.|....f...|
|00000060| 66 16 f8 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |f.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ad db 00 00 |........|........|
|00000080| 2f 2a 20 44 69 66 66 65 | 72 65 6e 63 65 20 75 74 |/* Diffe|rence ut|
|00000090| 69 6c 69 74 79 20 66 6f | 72 20 45 63 6c 65 63 74 |ility fo|r Eclect|
|000000a0| 75 73 20 69 6e 74 65 67 | 72 61 74 69 6f 6e 20 75 |us integ|ration u|
|000000b0| 74 69 6c 69 74 69 65 73 | 2e 0d 09 20 43 6f 70 79 |tilities|... Copy|
|000000c0| 72 69 67 68 74 20 28 43 | 29 20 31 39 39 32 2d 31 |right (C|) 1992-1|
|000000d0| 39 39 36 20 45 63 6c 65 | 63 74 75 73 20 28 44 2e |996 Ecle|ctus (D.|
|000000e0| 20 4a 6f 68 6e 20 41 6e | 64 65 72 73 6f 6e 2c 20 | John An|derson, |
|000000f0| 41 6c 61 6e 20 42 2e 20 | 48 61 72 70 65 72 29 2e |Alan B. |Harper).|
|00000100| 0d 0d 54 68 69 73 20 66 | 69 6c 65 20 69 73 20 70 |..This f|ile is p|
|00000110| 61 72 74 20 6f 66 20 74 | 68 65 20 45 63 6c 65 63 |art of t|he Eclec|
|00000120| 74 75 73 20 69 6e 74 65 | 67 72 61 74 69 6f 6e 20 |tus inte|gration |
|00000130| 75 74 69 6c 69 74 69 65 | 73 2e 0d 0d 45 63 6c 65 |utilitie|s...Ecle|
|00000140| 63 74 75 73 20 69 6e 74 | 65 67 72 61 74 69 6f 6e |ctus int|egration|
|00000150| 20 75 74 69 6c 69 74 69 | 65 73 20 61 72 65 20 66 | utiliti|es are f|
|00000160| 72 65 65 20 73 6f 66 74 | 77 61 72 65 3b 20 79 6f |ree soft|ware; yo|
|00000170| 75 20 63 61 6e 20 72 65 | 64 69 73 74 72 69 62 75 |u can re|distribu|
|00000180| 74 65 0d 69 74 20 61 6e | 64 2f 6f 72 20 6d 6f 64 |te.it an|d/or mod|
|00000190| 69 66 79 20 69 74 20 75 | 6e 64 65 72 20 74 68 65 |ify it u|nder the|
|000001a0| 20 74 65 72 6d 73 20 6f | 66 20 74 68 65 20 47 4e | terms o|f the GN|
|000001b0| 55 20 47 65 6e 65 72 61 | 6c 20 50 75 62 6c 69 63 |U Genera|l Public|
|000001c0| 20 4c 69 63 65 6e 73 65 | 0d 61 73 20 70 75 62 6c | License|.as publ|
|000001d0| 69 73 68 65 64 20 62 79 | 20 74 68 65 20 46 72 65 |ished by| the Fre|
|000001e0| 65 20 53 6f 66 74 77 61 | 72 65 20 46 6f 75 6e 64 |e Softwa|re Found|
|000001f0| 61 74 69 6f 6e 3b 20 65 | 69 74 68 65 72 20 76 65 |ation; e|ither ve|
|00000200| 72 73 69 6f 6e 20 31 2c | 20 6f 72 0d 28 61 74 20 |rsion 1,| or.(at |
|00000210| 79 6f 75 72 20 6f 70 74 | 69 6f 6e 29 20 61 6e 79 |your opt|ion) any|
|00000220| 20 6c 61 74 65 72 20 76 | 65 72 73 69 6f 6e 2e 0d | later v|ersion..|
|00000230| 0d 45 63 6c 65 63 74 75 | 73 20 69 6e 74 65 67 72 |.Eclectu|s integr|
|00000240| 61 74 69 6f 6e 20 75 74 | 69 6c 69 74 69 65 73 20 |ation ut|ilities |
|00000250| 69 73 20 64 69 73 74 72 | 69 62 75 74 65 64 20 69 |is distr|ibuted i|
|00000260| 6e 20 74 68 65 20 68 6f | 70 65 20 74 68 61 74 20 |n the ho|pe that |
|00000270| 69 74 0d 77 69 6c 6c 20 | 62 65 20 75 73 65 66 75 |it.will |be usefu|
|00000280| 6c 2c 20 62 75 74 20 57 | 49 54 48 4f 55 54 20 41 |l, but W|ITHOUT A|
|00000290| 4e 59 20 57 41 52 52 41 | 4e 54 59 3b 20 77 69 74 |NY WARRA|NTY; wit|
|000002a0| 68 6f 75 74 20 65 76 65 | 6e 20 74 68 65 20 69 6d |hout eve|n the im|
|000002b0| 70 6c 69 65 64 0d 77 61 | 72 72 61 6e 74 79 20 6f |plied.wa|rranty o|
|000002c0| 66 20 4d 45 52 43 48 41 | 4e 54 41 42 49 4c 49 54 |f MERCHA|NTABILIT|
|000002d0| 59 20 6f 72 20 46 49 54 | 4e 45 53 53 20 46 4f 52 |Y or FIT|NESS FOR|
|000002e0| 20 41 20 50 41 52 54 49 | 43 55 4c 41 52 20 50 55 | A PARTI|CULAR PU|
|000002f0| 52 50 4f 53 45 2e 0d 53 | 65 65 20 74 68 65 20 47 |RPOSE..S|ee the G|
|00000300| 4e 55 20 47 65 6e 65 72 | 61 6c 20 50 75 62 6c 69 |NU Gener|al Publi|
|00000310| 63 20 4c 69 63 65 6e 73 | 65 20 66 6f 72 20 6d 6f |c Licens|e for mo|
|00000320| 72 65 20 64 65 74 61 69 | 6c 73 2e 0d 0d 59 6f 75 |re detai|ls...You|
|00000330| 20 73 68 6f 75 6c 64 20 | 68 61 76 65 20 72 65 63 | should |have rec|
|00000340| 65 69 76 65 64 20 61 20 | 63 6f 70 79 20 6f 66 20 |eived a |copy of |
|00000350| 74 68 65 20 47 4e 55 20 | 47 65 6e 65 72 61 6c 20 |the GNU |General |
|00000360| 50 75 62 6c 69 63 20 4c | 69 63 65 6e 73 65 0d 61 |Public L|icense.a|
|00000370| 6c 6f 6e 67 20 77 69 74 | 68 20 74 68 65 20 45 63 |long wit|h the Ec|
|00000380| 6c 65 63 74 75 73 20 69 | 6e 74 65 67 72 61 74 69 |lectus i|ntegrati|
|00000390| 6f 6e 20 75 74 69 6c 69 | 74 69 65 73 3b 20 73 65 |on utili|ties; se|
|000003a0| 65 20 74 68 65 20 66 69 | 6c 65 20 43 4f 50 59 49 |e the fi|le COPYI|
|000003b0| 4e 47 2e 0d 49 66 20 6e | 6f 74 2c 20 77 72 69 74 |NG..If n|ot, writ|
|000003c0| 65 20 74 6f 20 74 68 65 | 20 46 72 65 65 20 53 6f |e to the| Free So|
|000003d0| 66 74 77 61 72 65 20 46 | 6f 75 6e 64 61 74 69 6f |ftware F|oundatio|
|000003e0| 6e 2c 20 36 37 35 20 4d | 61 73 73 20 41 76 65 2c |n, 675 M|ass Ave,|
|000003f0| 20 43 61 6d 62 72 69 64 | 67 65 2c 0d 4d 41 20 30 | Cambrid|ge,.MA 0|
|00000400| 32 31 33 39 2c 20 55 53 | 41 2e 09 2a 2f 0d 0d 23 |2139, US|A..*/..#|
|00000410| 69 6e 63 6c 75 64 65 20 | 22 64 69 66 66 2e 68 22 |include |"diff.h"|
|00000420| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 73 74 64 6c 69 |.#includ|e <stdli|
|00000430| 62 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 3c 73 |b.h>.#in|clude <s|
|00000440| 74 72 69 6e 67 2e 68 3e | 0d 0d 73 74 61 74 69 63 |tring.h>|..static|
|00000450| 20 69 6e 74 09 09 09 09 | 09 64 69 66 66 50 61 74 | int....|.diffPat|
|00000460| 68 44 65 70 74 68 3b 0d | 73 74 61 74 69 63 20 69 |hDepth;.|static i|
|00000470| 6e 74 09 09 09 09 09 65 | 78 69 74 53 74 61 74 75 |nt.....e|xitStatu|
|00000480| 73 20 3d 20 45 58 49 54 | 5f 53 55 43 43 45 53 53 |s = EXIT|_SUCCESS|
|00000490| 3b 0d 73 74 61 74 69 63 | 20 69 6e 74 09 09 09 09 |;.static| int....|
|000004a0| 09 69 67 6e 6f 72 65 42 | 69 6e 61 72 79 46 69 6c |.ignoreB|inaryFil|
|000004b0| 65 73 3b 0d 73 74 61 74 | 69 63 20 69 6e 74 09 09 |es;.stat|ic int..|
|000004c0| 09 09 09 72 65 74 75 72 | 6e 45 58 49 54 5f 53 55 |...retur|nEXIT_SU|
|000004d0| 43 43 45 53 53 3b 0d 73 | 74 61 74 69 63 20 75 6e |CCESS;.s|tatic un|
|000004e0| 73 69 67 6e 65 64 20 69 | 6e 74 09 68 61 73 68 56 |signed i|nt.hashV|
|000004f0| 61 6c 75 65 3b 0d 73 74 | 61 74 69 63 20 63 6f 6e |alue;.st|atic con|
|00000500| 73 74 20 63 68 61 72 09 | 20 2a 70 72 6f 67 72 61 |st char.| *progra|
|00000510| 6d 4e 61 6d 65 50 74 72 | 3b 0d 0d 76 6f 69 64 09 |mNamePtr|;..void.|
|00000520| 09 09 09 09 09 43 6f 6d | 6d 61 6e 64 4c 69 6e 65 |.....Com|mandLine|
|00000530| 20 28 69 6e 74 20 61 72 | 67 63 2c 0d 09 09 09 09 | (int ar|gc,.....|
|00000540| 09 09 09 09 09 09 09 09 | 09 09 20 63 6f 6e 73 74 |........|.. const|
|00000550| 20 63 68 61 72 20 2a 2a | 61 72 67 76 2c 0d 09 09 | char **|argv,...|
|00000560| 09 09 09 09 09 09 09 09 | 09 09 09 09 20 63 6f 6e |........|.... con|
|00000570| 73 74 20 63 68 61 72 20 | 2a 2a 70 61 74 68 4f 6c |st char |**pathOl|
|00000580| 64 4e 61 6d 65 50 74 72 | 50 74 72 2c 0d 09 09 09 |dNamePtr|Ptr,....|
|00000590| 09 09 09 09 09 09 09 09 | 09 09 09 20 63 6f 6e 73 |........|... cons|
|000005a0| 74 20 63 68 61 72 20 2a | 2a 70 61 74 68 4e 65 77 |t char *|*pathNew|
|000005b0| 4e 61 6d 65 50 74 72 50 | 74 72 29 3b 0d 76 6f 69 |NamePtrP|tr);.voi|
|000005c0| 64 09 09 09 09 09 09 43 | 6f 6d 6d 61 6e 64 4c 69 |d......C|ommandLi|
|000005d0| 6e 65 45 72 72 6f 72 20 | 28 69 6e 74 20 65 72 72 |neError |(int err|
|000005e0| 6f 72 4d 65 73 73 61 67 | 65 2c 20 63 6f 6e 73 74 |orMessag|e, const|
|000005f0| 20 63 68 61 72 20 2a 74 | 68 65 53 74 72 69 6e 67 | char *t|heString|
|00000600| 29 3b 0d 76 6f 69 64 09 | 09 09 09 09 09 44 69 66 |);.void.|.....Dif|
|00000610| 66 50 61 74 68 73 20 28 | 63 6f 6e 73 74 20 63 68 |fPaths (|const ch|
|00000620| 61 72 20 2a 70 61 74 68 | 4f 6c 64 4e 61 6d 65 50 |ar *path|OldNameP|
|00000630| 74 72 2c 20 63 6f 6e 73 | 74 20 63 68 61 72 20 2a |tr, cons|t char *|
|00000640| 70 61 74 68 4e 65 77 4e | 61 6d 65 50 74 72 29 3b |pathNewN|amePtr);|
|00000650| 0d 09 76 6f 69 64 09 09 | 09 09 09 09 50 72 69 6e |..void..|....Prin|
|00000660| 74 50 61 74 68 53 75 66 | 66 69 78 20 28 63 68 61 |tPathSuf|fix (cha|
|00000670| 72 20 63 6f 6d 6d 61 6e | 64 43 68 61 72 2c 20 63 |r comman|dChar, c|
|00000680| 6f 6e 73 74 20 63 68 61 | 72 20 2a 70 61 74 68 50 |onst cha|r *pathP|
|00000690| 74 72 29 3b 0d 69 6e 74 | 20 5f 5f 63 64 65 63 6c |tr);.int| __cdecl|
|000006a0| 09 09 09 6d 61 69 6e 20 | 28 69 6e 74 20 61 72 67 |...main |(int arg|
|000006b0| 63 2c 20 63 6f 6e 73 74 | 20 63 68 61 72 20 2a 2a |c, const| char **|
|000006c0| 61 72 67 76 29 3b 0d 0d | 76 6f 69 64 0d 43 6f 6d |argv);..|void.Com|
|000006d0| 6d 61 6e 64 4c 69 6e 65 | 20 28 69 6e 74 20 61 72 |mandLine| (int ar|
|000006e0| 67 63 2c 20 63 6f 6e 73 | 74 20 63 68 61 72 20 2a |gc, cons|t char *|
|000006f0| 2a 61 72 67 76 2c 20 63 | 6f 6e 73 74 20 63 68 61 |*argv, c|onst cha|
|00000700| 72 20 2a 2a 70 61 74 68 | 4f 6c 64 4e 61 6d 65 50 |r **path|OldNameP|
|00000710| 74 72 50 74 72 2c 20 63 | 6f 6e 73 74 20 63 68 61 |trPtr, c|onst cha|
|00000720| 72 20 2a 2a 70 61 74 68 | 4e 65 77 4e 61 6d 65 50 |r **path|NewNameP|
|00000730| 74 72 50 74 72 29 0d 2f | 2a 0d 20 2a 20 50 61 72 |trPtr)./|*. * Par|
|00000740| 73 65 73 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 |ses the |command |
|00000750| 6c 69 6e 65 2e 0d 20 2a | 2f 0d 7b 0d 09 63 68 61 |line.. *|/.{..cha|
|00000760| 72 09 09 09 09 09 09 09 | 09 09 63 6f 6d 6d 61 6e |r.......|..comman|
|00000770| 64 43 68 61 72 3b 0d 09 | 72 65 67 69 73 74 65 72 |dChar;..|register|
|00000780| 20 63 6f 6e 73 74 20 63 | 68 61 72 20 20 2a 63 6f | const c|har *co|
|00000790| 6d 6d 61 6e 64 53 74 72 | 69 6e 67 50 74 72 3b 0d |mmandStr|ingPtr;.|
|000007a0| 09 69 6e 74 20 09 09 09 | 09 09 09 09 09 09 66 69 |.int ...|......fi|
|000007b0| 6c 65 43 6f 75 6e 74 3b | 0d 0d 09 66 69 6c 65 43 |leCount;|...fileC|
|000007c0| 6f 75 6e 74 20 3d 20 30 | 3b 0d 0d 09 70 72 6f 67 |ount = 0|;...prog|
|000007d0| 72 61 6d 4e 61 6d 65 50 | 74 72 20 3d 20 2a 61 72 |ramNameP|tr = *ar|
|000007e0| 67 76 2b 2b 3b 0d 09 61 | 72 67 63 2d 2d 3b 0d 0d |gv++;..a|rgc--;..|
|000007f0| 2f 2a 20 50 61 72 73 65 | 20 74 68 65 20 63 6f 6d |/* Parse| the com|
|00000800| 6d 61 6e 64 73 20 61 6e | 64 20 6d 61 6b 65 20 73 |mands an|d make s|
|00000810| 75 72 65 20 74 68 65 79 | 20 61 72 65 20 6c 65 67 |ure they| are leg|
|00000820| 61 6c 20 2a 2f 0d 0d 09 | 77 68 69 6c 65 20 28 61 |al */...|while (a|
|00000830| 72 67 63 20 3e 20 30 29 | 20 7b 0d 09 09 63 6f 6d |rgc > 0)| {...com|
|00000840| 6d 61 6e 64 53 74 72 69 | 6e 67 50 74 72 20 3d 20 |mandStri|ngPtr = |
|00000850| 2a 61 72 67 76 2b 2b 3b | 0d 09 09 61 72 67 63 2d |*argv++;|...argc-|
|00000860| 2d 3b 0d 09 09 69 66 20 | 28 2a 63 6f 6d 6d 61 6e |-;...if |(*comman|
|00000870| 64 53 74 72 69 6e 67 50 | 74 72 20 21 3d 20 27 2d |dStringP|tr != '-|
|00000880| 27 29 20 7b 0d 09 09 09 | 69 66 20 28 66 69 6c 65 |') {....|if (file|
|00000890| 43 6f 75 6e 74 20 3e 3d | 20 32 29 0d 09 09 09 09 |Count >=| 2).....|
|000008a0| 43 6f 6d 6d 61 6e 64 4c | 69 6e 65 45 72 72 6f 72 |CommandL|ineError|
|000008b0| 20 28 54 57 4f 5f 46 49 | 4c 45 53 5f 4f 4e 4c 59 | (TWO_FI|LES_ONLY|
|000008c0| 2c 20 4e 55 4c 4c 29 3b | 0d 09 09 09 69 66 20 28 |, NULL);|....if (|
|000008d0| 46 69 6c 65 54 79 70 65 | 20 28 63 6f 6d 6d 61 6e |FileType| (comman|
|000008e0| 64 53 74 72 69 6e 67 50 | 74 72 29 20 3d 3d 20 42 |dStringP|tr) == B|
|000008f0| 41 44 5f 46 49 4c 45 5f | 54 59 50 45 29 0d 09 09 |AD_FILE_|TYPE)...|
|00000900| 09 09 45 72 72 6f 72 57 | 69 74 68 53 74 72 69 6e |..ErrorW|ithStrin|
|00000910| 67 41 72 67 75 6d 65 6e | 74 20 28 43 41 4e 54 5f |gArgumen|t (CANT_|
|00000920| 4f 50 45 4e 5f 46 49 4c | 45 2c 20 63 6f 6d 6d 61 |OPEN_FIL|E, comma|
|00000930| 6e 64 53 74 72 69 6e 67 | 50 74 72 29 3b 0d 0d 09 |ndString|Ptr);...|
|00000940| 09 09 69 66 20 28 66 69 | 6c 65 43 6f 75 6e 74 20 |..if (fi|leCount |
|00000950| 3d 3d 20 30 29 0d 09 09 | 09 09 2a 70 61 74 68 4f |== 0)...|..*pathO|
|00000960| 6c 64 4e 61 6d 65 50 74 | 72 50 74 72 20 3d 20 63 |ldNamePt|rPtr = c|
|00000970| 6f 6d 6d 61 6e 64 53 74 | 72 69 6e 67 50 74 72 3b |ommandSt|ringPtr;|
|00000980| 0d 09 09 09 65 6c 73 65 | 0d 09 09 09 09 2a 70 61 |....else|.....*pa|
|00000990| 74 68 4e 65 77 4e 61 6d | 65 50 74 72 50 74 72 20 |thNewNam|ePtrPtr |
|000009a0| 3d 20 63 6f 6d 6d 61 6e | 64 53 74 72 69 6e 67 50 |= comman|dStringP|
|000009b0| 74 72 3b 0d 0d 09 09 09 | 66 69 6c 65 43 6f 75 6e |tr;.....|fileCoun|
|000009c0| 74 20 2b 2b 3b 0d 09 09 | 7d 20 65 6c 73 65 20 7b |t ++;...|} else {|
|000009d0| 0d 09 09 09 69 66 20 28 | 73 74 72 6c 65 6e 20 28 |....if (|strlen (|
|000009e0| 63 6f 6d 6d 61 6e 64 53 | 74 72 69 6e 67 50 74 72 |commandS|tringPtr|
|000009f0| 29 20 21 3d 20 32 29 0d | 09 09 09 09 43 6f 6d 6d |) != 2).|....Comm|
|00000a00| 61 6e 64 4c 69 6e 65 45 | 72 72 6f 72 20 28 55 4e |andLineE|rror (UN|
|00000a10| 45 58 50 45 43 54 45 44 | 5f 4f 50 54 49 4f 4e 2c |EXPECTED|_OPTION,|
|00000a20| 20 63 6f 6d 6d 61 6e 64 | 53 74 72 69 6e 67 50 74 | command|StringPt|
|00000a30| 72 29 3b 0d 09 09 09 63 | 6f 6d 6d 61 6e 64 43 68 |r);....c|ommandCh|
|00000a40| 61 72 20 3d 20 2a 28 63 | 6f 6d 6d 61 6e 64 53 74 |ar = *(c|ommandSt|
|00000a50| 72 69 6e 67 50 74 72 20 | 2b 20 31 29 3b 0d 09 09 |ringPtr |+ 1);...|
|00000a60| 09 09 73 77 69 74 63 68 | 20 28 63 6f 6d 6d 61 6e |..switch| (comman|
|00000a70| 64 43 68 61 72 29 20 7b | 0d 09 09 09 09 09 63 61 |dChar) {|......ca|
|00000a80| 73 65 20 28 27 69 27 29 | 3a 0d 09 09 09 09 09 09 |se ('i')|:.......|
|00000a90| 69 67 6e 6f 72 65 42 69 | 6e 61 72 79 46 69 6c 65 |ignoreBi|naryFile|
|00000aa0| 73 20 3d 20 54 52 55 45 | 3b 0d 09 09 09 09 09 09 |s = TRUE|;.......|
|00000ab0| 62 72 65 61 6b 3b 0d 09 | 09 09 09 09 63 61 73 65 |break;..|....case|
|00000ac0| 20 28 27 79 27 29 3a 0d | 09 09 09 09 09 09 72 65 | ('y'):.|......re|
|00000ad0| 74 75 72 6e 45 58 49 54 | 5f 53 55 43 43 45 53 53 |turnEXIT|_SUCCESS|
|00000ae0| 20 3d 20 54 52 55 45 3b | 0d 09 09 09 09 09 09 62 | = TRUE;|.......b|
|00000af0| 72 65 61 6b 3b 0d 09 09 | 09 09 23 69 66 64 65 66 |reak;...|..#ifdef|
|00000b00| 20 44 46 5f 44 45 42 55 | 47 0d 09 09 09 09 09 63 | DF_DEBU|G......c|
|00000b10| 61 73 65 20 28 27 58 27 | 29 3a 0d 09 09 09 09 09 |ase ('X'|):......|
|00000b20| 09 45 43 43 68 65 63 6b | 46 72 65 65 64 42 6c 6f |.ECCheck|FreedBlo|
|00000b30| 63 6b 73 20 3d 20 31 3b | 0d 09 09 09 09 09 09 62 |cks = 1;|.......b|
|00000b40| 72 65 61 6b 3b 0d 09 09 | 09 09 09 63 61 73 65 20 |reak;...|...case |
|00000b50| 28 27 78 27 29 3a 0d 09 | 09 09 09 09 09 45 43 48 |('x'):..|.....ECH|
|00000b60| 65 61 70 43 68 65 63 6b | 4f 6e 20 3d 20 31 3b 0d |eapCheck|On = 1;.|
|00000b70| 09 09 09 09 09 09 62 72 | 65 61 6b 3b 0d 09 09 09 |......br|eak;....|
|00000b80| 09 23 65 6e 64 69 66 0d | 09 09 09 09 64 65 66 61 |.#endif.|....defa|
|00000b90| 75 6c 74 3a 0d 09 09 09 | 09 09 43 6f 6d 6d 61 6e |ult:....|..Comman|
|00000ba0| 64 4c 69 6e 65 45 72 72 | 6f 72 20 28 55 4e 45 58 |dLineErr|or (UNEX|
|00000bb0| 50 45 43 54 45 44 5f 4f | 50 54 49 4f 4e 2c 20 63 |PECTED_O|PTION, c|
|00000bc0| 6f 6d 6d 61 6e 64 53 74 | 72 69 6e 67 50 74 72 29 |ommandSt|ringPtr)|
|00000bd0| 3b 0d 09 09 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 |;......b|reak;...|
|00000be0| 09 09 7d 0d 09 09 7d 0d | 09 7d 0d 09 69 66 20 28 |..}...}.|.}..if (|
|00000bf0| 66 69 6c 65 43 6f 75 6e | 74 20 21 3d 20 32 29 0d |fileCoun|t != 2).|
|00000c00| 09 09 43 6f 6d 6d 61 6e | 64 4c 69 6e 65 45 72 72 |..Comman|dLineErr|
|00000c10| 6f 72 20 28 54 57 4f 5f | 46 49 4c 45 53 5f 4f 4e |or (TWO_|FILES_ON|
|00000c20| 4c 59 2c 20 4e 55 4c 4c | 29 3b 0d 7d 0d 0d 09 76 |LY, NULL|);.}...v|
|00000c30| 6f 69 64 0d 09 43 6f 6d | 6d 61 6e 64 4c 69 6e 65 |oid..Com|mandLine|
|00000c40| 45 72 72 6f 72 20 28 69 | 6e 74 20 65 72 72 6f 72 |Error (i|nt error|
|00000c50| 4d 65 73 73 61 67 65 2c | 20 63 6f 6e 73 74 20 63 |Message,| const c|
|00000c60| 68 61 72 20 2a 74 68 65 | 53 74 72 69 6e 67 29 0d |har *the|String).|
|00000c70| 09 2f 2a 0d 09 20 2a 20 | 50 61 72 74 20 6f 66 20 |./*.. * |Part of |
|00000c80| 43 6f 6d 6d 61 6e 64 4c | 69 6e 65 2e 0d 09 20 2a |CommandL|ine... *|
|00000c90| 2f 0d 09 7b 0d 09 09 66 | 70 72 69 6e 74 66 20 28 |/..{...f|printf (|
|00000ca0| 73 74 64 65 72 72 2c 20 | 22 23 20 2d 20 22 29 3b |stderr, |"# - ");|
|00000cb0| 0d 09 09 69 66 20 28 74 | 68 65 53 74 72 69 6e 67 |...if (t|heString|
|00000cc0| 20 21 3d 20 4e 55 4c 4c | 29 0d 09 09 09 66 70 72 | != NULL|)....fpr|
|00000cd0| 69 6e 74 66 20 28 73 74 | 64 65 72 72 2c 20 45 43 |intf (st|derr, EC|
|00000ce0| 4d 65 73 73 61 67 65 73 | 73 41 72 72 61 79 20 5b |Messages|sArray [|
|00000cf0| 65 72 72 6f 72 4d 65 73 | 73 61 67 65 5d 2c 20 74 |errorMes|sage], t|
|00000d00| 68 65 53 74 72 69 6e 67 | 29 3b 0d 09 09 65 6c 73 |heString|);...els|
|00000d10| 65 0d 09 09 09 66 70 72 | 69 6e 74 66 20 28 73 74 |e....fpr|intf (st|
|00000d20| 64 65 72 72 2c 20 45 43 | 4d 65 73 73 61 67 65 73 |derr, EC|Messages|
|00000d30| 73 41 72 72 61 79 20 5b | 65 72 72 6f 72 4d 65 73 |sArray [|errorMes|
|00000d40| 73 61 67 65 5d 2c 20 22 | 22 29 3b 0d 09 09 66 70 |sage], "|");...fp|
|00000d50| 72 69 6e 74 66 20 28 73 | 74 64 65 72 72 2c 20 22 |rintf (s|tderr, "|
|00000d60| 2e 5c 6e 5c 6e 22 0d 09 | 09 09 09 09 09 09 09 09 |.\n\n"..|........|
|00000d70| 09 20 22 23 23 23 20 44 | 69 66 66 65 72 65 6e 63 |. "### D|ifferenc|
|00000d80| 65 20 76 65 72 73 69 6f | 6e 20 25 73 5c 6e 22 0d |e versio|n %s\n".|
|00000d90| 09 09 09 09 09 09 09 09 | 09 09 20 22 23 75 73 61 |........|.. "#usa|
|00000da0| 67 65 3a 20 25 73 20 53 | 6f 75 72 63 65 50 61 74 |ge: %s S|ourcePat|
|00000db0| 68 20 4d 6f 64 69 66 69 | 65 64 50 61 74 68 20 3e |h Modifi|edPath >|
|00000dc0| 20 44 69 66 66 65 72 65 | 6e 63 65 53 63 72 69 70 | Differe|nceScrip|
|00000dd0| 74 46 69 6c 65 5c 6e 22 | 0d 09 09 09 09 09 09 09 |tFile\n"|........|
|00000de0| 09 09 09 20 22 23 20 20 | 20 20 20 20 20 2d 79 20 |... "# | -y |
|00000df0| 41 6c 77 61 79 73 20 72 | 65 74 75 72 6e 20 45 58 |Always r|eturn EX|
|00000e00| 49 54 5f 53 55 43 43 45 | 53 53 5c 6e 22 0d 09 09 |IT_SUCCE|SS\n"...|
|00000e10| 09 09 09 09 09 09 09 09 | 20 22 23 20 20 20 20 20 |........| "# |
|00000e20| 20 20 2d 69 20 69 67 6e | 6f 72 65 20 62 69 6e 61 | -i ign|ore bina|
|00000e30| 72 79 20 66 69 6c 65 73 | 5c 6e 5c 6e 22 2c 0d 09 |ry files|\n\n",..|
|00000e40| 09 09 09 09 09 09 09 09 | 09 20 56 45 52 53 49 4f |........|. VERSIO|
|00000e50| 4e 5f 53 54 52 49 4e 47 | 2c 0d 09 09 09 09 09 09 |N_STRING|,.......|
|00000e60| 20 09 09 09 09 20 70 72 | 6f 67 72 61 6d 4e 61 6d | .... pr|ogramNam|
|00000e70| 65 50 74 72 29 3b 0d 09 | 09 65 78 69 74 20 28 45 |ePtr);..|.exit (E|
|00000e80| 58 49 54 5f 46 41 49 4c | 55 52 45 29 3b 0d 09 7d |XIT_FAIL|URE);..}|
|00000e90| 0d 0d 76 6f 69 64 0d 44 | 69 66 66 50 61 74 68 73 |..void.D|iffPaths|
|00000ea0| 20 28 63 6f 6e 73 74 20 | 63 68 61 72 20 2a 70 61 | (const |char *pa|
|00000eb0| 74 68 4f 6c 64 4e 61 6d | 65 50 74 72 2c 20 63 6f |thOldNam|ePtr, co|
|00000ec0| 6e 73 74 20 63 68 61 72 | 20 2a 70 61 74 68 4e 65 |nst char| *pathNe|
|00000ed0| 77 4e 61 6d 65 50 74 72 | 29 0d 7b 0d 09 72 65 67 |wNamePtr|).{..reg|
|00000ee0| 69 73 74 65 72 20 75 6e | 73 69 67 6e 65 64 20 63 |ister un|signed c|
|00000ef0| 68 61 72 20 2a 63 68 61 | 72 50 74 72 3b 0d 09 72 |har *cha|rPtr;..r|
|00000f00| 65 67 69 73 74 65 72 20 | 69 6e 74 09 09 09 09 09 |egister |int.....|
|00000f10| 09 63 6f 75 6e 74 3b 0d | 09 63 68 61 72 09 09 09 |.count;.|.char...|
|00000f20| 09 09 09 09 09 09 09 64 | 69 66 66 65 72 65 6e 63 |.......d|ifferenc|
|00000f30| 65 43 68 61 72 3b 0d 09 | 69 6e 74 20 09 09 09 09 |eChar;..|int ....|
|00000f40| 09 09 09 09 09 09 66 69 | 6c 65 4b 69 6e 64 3b 0d |......fi|leKind;.|
|00000f50| 09 66 69 6c 65 4e 61 6d | 65 4c 69 73 74 50 54 79 |.fileNam|eListPTy|
|00000f60| 70 65 20 09 09 09 66 69 | 6c 65 4e 61 6d 65 4c 69 |pe ...fi|leNameLi|
|00000f70| 73 74 50 74 72 3b 0d 09 | 69 6e 74 09 09 09 09 09 |stPtr;..|int.....|
|00000f80| 09 09 09 09 09 09 66 69 | 6c 65 73 41 72 65 49 64 |......fi|lesAreId|
|00000f90| 65 6e 74 69 63 61 6c 3b | 0d 09 72 65 67 69 73 74 |entical;|..regist|
|00000fa0| 65 72 20 75 6e 73 69 67 | 6e 65 64 20 63 68 61 72 |er unsig|ned char|
|00000fb0| 09 68 65 78 44 69 67 69 | 74 3b 0d 09 63 68 61 72 |.hexDigi|t;..char|
|00000fc0| 09 09 09 09 09 09 09 09 | 09 20 2a 6e 61 6d 65 53 |........|. *nameS|
|00000fd0| 75 66 66 69 78 50 74 72 | 3b 0d 09 73 74 72 75 63 |uffixPtr|;..struc|
|00000fe0| 74 20 66 69 6c 65 5f 64 | 61 74 61 09 09 09 09 6e |t file_d|ata....n|
|00000ff0| 65 77 46 69 6c 65 3b 0d | 09 69 6e 74 09 09 09 09 |ewFile;.|.int....|
|00001000| 09 09 09 09 09 09 09 6e | 6f 6e 41 53 43 49 49 43 |.......n|onASCIIC|
|00001010| 68 61 72 73 3b 0d 09 73 | 74 72 75 63 74 20 66 69 |hars;..s|truct fi|
|00001020| 6c 65 5f 64 61 74 61 09 | 09 09 09 6f 6c 64 46 69 |le_data.|...oldFi|
|00001030| 6c 65 3b 0d 09 63 68 61 | 72 09 09 09 09 09 09 09 |le;..cha|r.......|
|00001040| 09 09 09 70 61 74 68 4e | 65 77 4e 61 6d 65 20 5b |...pathN|ewName [|
|00001050| 46 49 4c 45 4e 41 4d 45 | 5f 4d 41 58 20 2b 20 31 |FILENAME|_MAX + 1|
|00001060| 5d 3b 0d 09 69 6e 74 20 | 09 09 09 09 09 09 09 09 |];..int |........|
|00001070| 09 09 70 61 74 68 4e 65 | 77 50 72 65 66 69 78 4c |..pathNe|wPrefixL|
|00001080| 65 6e 67 74 68 3b 0d 09 | 63 68 61 72 09 09 09 09 |ength;..|char....|
|00001090| 09 09 09 09 09 09 70 61 | 74 68 4f 6c 64 4e 61 6d |......pa|thOldNam|
|000010a0| 65 20 5b 46 49 4c 45 4e | 41 4d 45 5f 4d 41 58 20 |e [FILEN|AME_MAX |
|000010b0| 2b 20 31 5d 3b 0d 09 69 | 6e 74 20 09 09 09 09 09 |+ 1];..i|nt .....|
|000010c0| 09 09 09 09 09 70 61 74 | 68 4f 6c 64 50 72 65 66 |.....pat|hOldPref|
|000010d0| 69 78 4c 65 6e 67 74 68 | 3b 0d 09 69 6e 74 20 09 |ixLength|;..int .|
|000010e0| 09 09 09 09 09 09 09 09 | 09 73 75 66 66 69 78 4c |........|.suffixL|
|000010f0| 65 6e 67 74 68 50 6c 75 | 73 4f 6e 65 3b 0d 09 72 |engthPlu|sOne;..r|
|00001100| 65 67 69 73 74 65 72 20 | 75 6e 73 69 67 6e 65 64 |egister |unsigned|
|00001110| 20 63 68 61 72 09 74 68 | 65 43 68 61 72 3b 0d 09 | char.th|eChar;..|
|00001120| 72 65 67 69 73 74 65 72 | 20 69 6e 74 09 09 09 09 |register| int....|
|00001130| 09 09 74 6f 74 61 6c 42 | 79 74 65 73 3b 0d 0d 09 |..totalB|ytes;...|
|00001140| 64 69 66 66 50 61 74 68 | 44 65 70 74 68 2b 2b 3b |diffPath|Depth++;|
|00001150| 0d 09 66 69 6c 65 4b 69 | 6e 64 20 3d 20 46 69 6c |..fileKi|nd = Fil|
|00001160| 65 54 79 70 65 20 28 70 | 61 74 68 4e 65 77 4e 61 |eType (p|athNewNa|
|00001170| 6d 65 50 74 72 29 3b 0d | 09 73 77 69 74 63 68 20 |mePtr);.|.switch |
|00001180| 28 66 69 6c 65 4b 69 6e | 64 29 20 7b 0d 09 09 63 |(fileKin|d) {...c|
|00001190| 61 73 65 20 28 44 49 52 | 45 43 54 4f 52 59 5f 54 |ase (DIR|ECTORY_T|
|000011a0| 59 50 45 29 3a 0d 09 09 | 09 50 72 69 6e 74 50 61 |YPE):...|.PrintPa|
|000011b0| 74 68 53 75 66 66 69 78 | 20 28 27 64 27 2c 20 70 |thSuffix| ('d', p|
|000011c0| 61 74 68 4e 65 77 4e 61 | 6d 65 50 74 72 29 3b 0d |athNewNa|mePtr);.|
|000011d0| 09 09 09 66 69 6c 65 4e | 61 6d 65 4c 69 73 74 50 |...fileN|ameListP|
|000011e0| 74 72 20 3d 20 52 65 61 | 64 44 69 72 65 63 74 6f |tr = Rea|dDirecto|
|000011f0| 72 79 20 28 70 61 74 68 | 4e 65 77 4e 61 6d 65 50 |ry (path|NewNameP|
|00001200| 74 72 29 3b 0d 09 09 09 | 69 66 20 28 66 69 6c 65 |tr);....|if (file|
|00001210| 4e 61 6d 65 4c 69 73 74 | 50 74 72 20 3d 3d 20 4e |NameList|Ptr == N|
|00001220| 55 4c 4c 29 0d 09 09 09 | 09 45 72 72 6f 72 20 28 |ULL)....|.Error (|
|00001230| 55 4e 45 58 50 45 43 54 | 45 44 5f 49 4f 5f 45 52 |UNEXPECT|ED_IO_ER|
|00001240| 52 4f 52 29 3b 0d 09 09 | 09 6e 61 6d 65 53 75 66 |ROR);...|.nameSuf|
|00001250| 66 69 78 50 74 72 20 3d | 20 66 69 6c 65 4e 61 6d |fixPtr =| fileNam|
|00001260| 65 4c 69 73 74 50 74 72 | 2d 3e 6e 61 6d 65 73 3b |eListPtr|->names;|
|00001270| 0d 0d 09 09 09 70 61 74 | 68 4e 65 77 50 72 65 66 |.....pat|hNewPref|
|00001280| 69 78 4c 65 6e 67 74 68 | 20 3d 20 73 74 72 6c 65 |ixLength| = strle|
|00001290| 6e 20 28 70 61 74 68 4e | 65 77 4e 61 6d 65 50 74 |n (pathN|ewNamePt|
|000012a0| 72 29 3b 0d 09 09 09 28 | 76 6f 69 64 29 20 6d 65 |r);....(|void) me|
|000012b0| 6d 63 70 79 20 28 70 61 | 74 68 4e 65 77 4e 61 6d |mcpy (pa|thNewNam|
|000012c0| 65 2c 20 70 61 74 68 4e | 65 77 4e 61 6d 65 50 74 |e, pathN|ewNamePt|
|000012d0| 72 2c 20 70 61 74 68 4e | 65 77 50 72 65 66 69 78 |r, pathN|ewPrefix|
|000012e0| 4c 65 6e 67 74 68 29 3b | 0d 09 09 09 69 66 20 28 |Length);|....if (|
|000012f0| 70 61 74 68 4e 65 77 4e | 61 6d 65 20 5b 70 61 74 |pathNewN|ame [pat|
|00001300| 68 4e 65 77 50 72 65 66 | 69 78 4c 65 6e 67 74 68 |hNewPref|ixLength|
|00001310| 2d 31 5d 20 21 3d 20 44 | 49 52 45 43 54 4f 52 59 |-1] != D|IRECTORY|
|00001320| 5f 43 48 41 52 29 20 7b | 0d 09 09 09 09 70 61 74 |_CHAR) {|.....pat|
|00001330| 68 4e 65 77 4e 61 6d 65 | 20 5b 70 61 74 68 4e 65 |hNewName| [pathNe|
|00001340| 77 50 72 65 66 69 78 4c | 65 6e 67 74 68 5d 20 3d |wPrefixL|ength] =|
|00001350| 20 44 49 52 45 43 54 4f | 52 59 5f 43 48 41 52 3b | DIRECTO|RY_CHAR;|
|00001360| 0d 09 09 09 09 70 61 74 | 68 4e 65 77 50 72 65 66 |.....pat|hNewPref|
|00001370| 69 78 4c 65 6e 67 74 68 | 20 2b 2b 3b 0d 09 09 09 |ixLength| ++;....|
|00001380| 7d 0d 09 09 09 70 61 74 | 68 4f 6c 64 50 72 65 66 |}....pat|hOldPref|
|00001390| 69 78 4c 65 6e 67 74 68 | 20 3d 20 73 74 72 6c 65 |ixLength| = strle|
|000013a0| 6e 20 28 70 61 74 68 4f | 6c 64 4e 61 6d 65 50 74 |n (pathO|ldNamePt|
|000013b0| 72 29 3b 0d 09 09 09 28 | 76 6f 69 64 29 20 6d 65 |r);....(|void) me|
|000013c0| 6d 63 70 79 20 28 70 61 | 74 68 4f 6c 64 4e 61 6d |mcpy (pa|thOldNam|
|000013d0| 65 2c 20 70 61 74 68 4f | 6c 64 4e 61 6d 65 50 74 |e, pathO|ldNamePt|
|000013e0| 72 2c 20 70 61 74 68 4f | 6c 64 50 72 65 66 69 78 |r, pathO|ldPrefix|
|000013f0| 4c 65 6e 67 74 68 29 3b | 0d 09 09 09 69 66 20 28 |Length);|....if (|
|00001400| 70 61 74 68 4f 6c 64 4e | 61 6d 65 20 5b 70 61 74 |pathOldN|ame [pat|
|00001410| 68 4f 6c 64 50 72 65 66 | 69 78 4c 65 6e 67 74 68 |hOldPref|ixLength|
|00001420| 2d 31 5d 20 21 3d 20 44 | 49 52 45 43 54 4f 52 59 |-1] != D|IRECTORY|
|00001430| 5f 43 48 41 52 29 20 7b | 0d 09 09 09 09 70 61 74 |_CHAR) {|.....pat|
|00001440| 68 4f 6c 64 4e 61 6d 65 | 20 5b 70 61 74 68 4f 6c |hOldName| [pathOl|
|00001450| 64 50 72 65 66 69 78 4c | 65 6e 67 74 68 5d 20 3d |dPrefixL|ength] =|
|00001460| 20 44 49 52 45 43 54 4f | 52 59 5f 43 48 41 52 3b | DIRECTO|RY_CHAR;|
|00001470| 0d 09 09 09 09 70 61 74 | 68 4f 6c 64 50 72 65 66 |.....pat|hOldPref|
|00001480| 69 78 4c 65 6e 67 74 68 | 20 2b 2b 3b 0d 09 09 09 |ixLength| ++;....|
|00001490| 7d 0d 0d 09 09 09 77 68 | 69 6c 65 20 28 2a 6e 61 |}.....wh|ile (*na|
|000014a0| 6d 65 53 75 66 66 69 78 | 50 74 72 20 21 3d 20 27 |meSuffix|Ptr != '|
|000014b0| 5c 30 27 29 20 7b 0d 09 | 09 09 09 73 75 66 66 69 |\0') {..|...suffi|
|000014c0| 78 4c 65 6e 67 74 68 50 | 6c 75 73 4f 6e 65 20 3d |xLengthP|lusOne =|
|000014d0| 20 73 74 72 6c 65 6e 20 | 28 6e 61 6d 65 53 75 66 | strlen |(nameSuf|
|000014e0| 66 69 78 50 74 72 29 20 | 2b 20 31 3b 0d 09 09 09 |fixPtr) |+ 1;....|
|000014f0| 09 69 66 20 28 70 61 74 | 68 4e 65 77 50 72 65 66 |.if (pat|hNewPref|
|00001500| 69 78 4c 65 6e 67 74 68 | 20 2b 20 73 75 66 66 69 |ixLength| + suffi|
|00001510| 78 4c 65 6e 67 74 68 50 | 6c 75 73 4f 6e 65 20 3e |xLengthP|lusOne >|
|00001520| 20 46 49 4c 45 4e 41 4d | 45 5f 4d 41 58 29 20 7b | FILENAM|E_MAX) {|
|00001530| 0d 09 09 09 09 09 66 70 | 72 69 6e 74 66 20 28 73 |......fp|rintf (s|
|00001540| 74 64 65 72 72 2c 20 22 | 25 73 25 73 5c 6e 22 2c |tderr, "|%s%s\n",|
|00001550| 20 70 61 74 68 4e 65 77 | 4e 61 6d 65 50 74 72 2c | pathNew|NamePtr,|
|00001560| 20 6e 61 6d 65 53 75 66 | 66 69 78 50 74 72 29 3b | nameSuf|fixPtr);|
|00001570| 0d 09 09 09 09 09 45 72 | 72 6f 72 20 28 50 41 54 |......Er|ror (PAT|
|00001580| 48 5f 54 4f 4f 5f 4c 4f | 4e 47 29 3b 0d 09 09 09 |H_TOO_LO|NG);....|
|00001590| 09 7d 0d 09 09 09 09 69 | 66 20 28 70 61 74 68 4f |.}.....i|f (pathO|
|000015a0| 6c 64 50 72 65 66 69 78 | 4c 65 6e 67 74 68 20 2b |ldPrefix|Length +|
|000015b0| 20 73 75 66 66 69 78 4c | 65 6e 67 74 68 50 6c 75 | suffixL|engthPlu|
|000015c0| 73 4f 6e 65 20 3e 20 46 | 49 4c 45 4e 41 4d 45 5f |sOne > F|ILENAME_|
|000015d0| 4d 41 58 29 20 7b 0d 09 | 09 09 09 09 66 70 72 69 |MAX) {..|....fpri|
|000015e0| 6e 74 66 20 28 73 74 64 | 65 72 72 2c 20 22 25 73 |ntf (std|err, "%s|
|000015f0| 25 73 5c 6e 22 2c 20 70 | 61 74 68 4f 6c 64 4e 61 |%s\n", p|athOldNa|
|00001600| 6d 65 50 74 72 2c 20 6e | 61 6d 65 53 75 66 66 69 |mePtr, n|ameSuffi|
|00001610| 78 50 74 72 29 3b 0d 09 | 09 09 09 09 45 72 72 6f |xPtr);..|....Erro|
|00001620| 72 20 28 50 41 54 48 5f | 54 4f 4f 5f 4c 4f 4e 47 |r (PATH_|TOO_LONG|
|00001630| 29 3b 0d 09 09 09 09 7d | 0d 09 09 09 09 69 66 20 |);.....}|.....if |
|00001640| 28 21 49 67 6e 6f 72 65 | 46 69 6c 65 20 28 6e 61 |(!Ignore|File (na|
|00001650| 6d 65 53 75 66 66 69 78 | 50 74 72 29 29 20 7b 0d |meSuffix|Ptr)) {.|
|00001660| 09 09 09 09 09 28 76 6f | 69 64 29 20 6d 65 6d 63 |.....(vo|id) memc|
|00001670| 70 79 20 28 70 61 74 68 | 4e 65 77 4e 61 6d 65 20 |py (path|NewName |
|00001680| 2b 20 70 61 74 68 4e 65 | 77 50 72 65 66 69 78 4c |+ pathNe|wPrefixL|
|00001690| 65 6e 67 74 68 2c 20 6e | 61 6d 65 53 75 66 66 69 |ength, n|ameSuffi|
|000016a0| 78 50 74 72 2c 20 73 75 | 66 66 69 78 4c 65 6e 67 |xPtr, su|ffixLeng|
|000016b0| 74 68 50 6c 75 73 4f 6e | 65 29 3b 0d 09 09 09 09 |thPlusOn|e);.....|
|000016c0| 09 28 76 6f 69 64 29 20 | 6d 65 6d 63 70 79 20 28 |.(void) |memcpy (|
|000016d0| 70 61 74 68 4f 6c 64 4e | 61 6d 65 20 2b 20 70 61 |pathOldN|ame + pa|
|000016e0| 74 68 4f 6c 64 50 72 65 | 66 69 78 4c 65 6e 67 74 |thOldPre|fixLengt|
|000016f0| 68 2c 20 6e 61 6d 65 53 | 75 66 66 69 78 50 74 72 |h, nameS|uffixPtr|
|00001700| 2c 20 73 75 66 66 69 78 | 4c 65 6e 67 74 68 50 6c |, suffix|LengthPl|
|00001710| 75 73 4f 6e 65 29 3b 0d | 09 09 09 09 09 44 69 66 |usOne);.|.....Dif|
|00001720| 66 50 61 74 68 73 20 28 | 70 61 74 68 4f 6c 64 4e |fPaths (|pathOldN|
|00001730| 61 6d 65 2c 20 70 61 74 | 68 4e 65 77 4e 61 6d 65 |ame, pat|hNewName|
|00001740| 29 3b 0d 09 09 09 09 7d | 0d 09 09 09 09 6e 61 6d |);.....}|.....nam|
|00001750| 65 53 75 66 66 69 78 50 | 74 72 20 2b 3d 20 73 75 |eSuffixP|tr += su|
|00001760| 66 66 69 78 4c 65 6e 67 | 74 68 50 6c 75 73 4f 6e |ffixLeng|thPlusOn|
|00001770| 65 3b 0d 09 09 09 7d 0d | 09 09 09 66 72 65 65 20 |e;....}.|...free |
|00001780| 28 66 69 6c 65 4e 61 6d | 65 4c 69 73 74 50 74 72 |(fileNam|eListPtr|
|00001790| 29 3b 0d 09 09 09 70 72 | 69 6e 74 66 20 28 22 75 |);....pr|intf ("u|
|000017a0| 5c 6e 22 29 3b 0d 09 09 | 09 62 72 65 61 6b 3b 0d |\n");...|.break;.|
|000017b0| 09 09 63 61 73 65 20 28 | 42 49 4e 41 52 59 5f 54 |..case (|BINARY_T|
|000017c0| 59 50 45 29 3a 0d 09 09 | 09 69 66 20 28 21 69 67 |YPE):...|.if (!ig|
|000017d0| 6e 6f 72 65 42 69 6e 61 | 72 79 46 69 6c 65 73 29 |noreBina|ryFiles)|
|000017e0| 20 7b 0d 09 09 09 09 50 | 72 69 6e 74 50 61 74 68 | {.....P|rintPath|
|000017f0| 53 75 66 66 69 78 20 28 | 27 62 27 2c 20 70 61 74 |Suffix (|'b', pat|
|00001800| 68 4e 65 77 4e 61 6d 65 | 50 74 72 29 3b 0d 09 09 |hNewName|Ptr);...|
|00001810| 09 09 62 7a 65 72 6f 20 | 28 26 6e 65 77 46 69 6c |..bzero |(&newFil|
|00001820| 65 2c 20 73 69 7a 65 6f | 66 20 28 73 74 72 75 63 |e, sizeo|f (struc|
|00001830| 74 20 66 69 6c 65 5f 64 | 61 74 61 29 29 3b 0d 09 |t file_d|ata));..|
|00001840| 09 09 09 62 7a 65 72 6f | 20 28 26 6f 6c 64 46 69 |...bzero| (&oldFi|
|00001850| 6c 65 2c 20 73 69 7a 65 | 6f 66 20 28 73 74 72 75 |le, size|of (stru|
|00001860| 63 74 20 66 69 6c 65 5f | 64 61 74 61 29 29 3b 0d |ct file_|data));.|
|00001870| 09 09 09 09 6e 65 77 46 | 69 6c 65 2e 6e 61 6d 65 |....newF|ile.name|
|00001880| 50 74 72 20 3d 20 70 61 | 74 68 4e 65 77 4e 61 6d |Ptr = pa|thNewNam|
|00001890| 65 50 74 72 3b 0d 09 09 | 09 09 6e 65 77 46 69 6c |ePtr;...|..newFil|
|000018a0| 65 2e 64 65 73 63 20 3d | 20 66 6f 70 65 6e 20 28 |e.desc =| fopen (|
|000018b0| 70 61 74 68 4e 65 77 4e | 61 6d 65 50 74 72 2c 20 |pathNewN|amePtr, |
|000018c0| 22 72 62 22 29 3b 0d 09 | 09 09 09 69 66 20 28 6e |"rb");..|...if (n|
|000018d0| 65 77 46 69 6c 65 2e 64 | 65 73 63 20 3d 3d 20 4e |ewFile.d|esc == N|
|000018e0| 55 4c 4c 29 0d 09 09 09 | 09 09 45 72 72 6f 72 57 |ULL)....|..ErrorW|
|000018f0| 69 74 68 53 74 72 69 6e | 67 41 72 67 75 6d 65 6e |ithStrin|gArgumen|
|00001900| 74 20 28 43 41 4e 54 5f | 4f 50 45 4e 5f 46 49 4c |t (CANT_|OPEN_FIL|
|00001910| 45 2c 20 70 61 74 68 4e | 65 77 4e 61 6d 65 50 74 |E, pathN|ewNamePt|
|00001920| 72 29 3b 0d 09 09 09 09 | 6f 6c 64 46 69 6c 65 2e |r);.....|oldFile.|
|00001930| 6e 61 6d 65 50 74 72 20 | 3d 20 70 61 74 68 4f 6c |namePtr |= pathOl|
|00001940| 64 4e 61 6d 65 50 74 72 | 3b 0d 09 09 09 09 6f 6c |dNamePtr|;.....ol|
|00001950| 64 46 69 6c 65 2e 64 65 | 73 63 20 3d 20 66 6f 70 |dFile.de|sc = fop|
|00001960| 65 6e 20 28 70 61 74 68 | 4f 6c 64 4e 61 6d 65 50 |en (path|OldNameP|
|00001970| 74 72 2c 20 22 72 62 22 | 29 3b 0d 09 09 09 09 73 |tr, "rb"|);.....s|
|00001980| 6c 75 72 70 20 28 26 6e | 65 77 46 69 6c 65 29 3b |lurp (&n|ewFile);|
|00001990| 0d 09 09 09 09 73 6c 75 | 72 70 20 28 26 6f 6c 64 |.....slu|rp (&old|
|000019a0| 46 69 6c 65 29 3b 0d 09 | 09 09 09 74 6f 74 61 6c |File);..|...total|
|000019b0| 42 79 74 65 73 20 3d 20 | 6e 65 77 46 69 6c 65 2e |Bytes = |newFile.|
|000019c0| 62 75 66 66 65 72 65 64 | 5f 63 68 61 72 73 3b 0d |buffered|_chars;.|
|000019d0| 09 09 09 09 69 66 20 28 | 6e 65 77 46 69 6c 65 2e |....if (|newFile.|
|000019e0| 6d 69 73 73 69 6e 67 5f | 6e 65 77 6c 69 6e 65 29 |missing_|newline)|
|000019f0| 0d 09 09 09 09 09 74 6f | 74 61 6c 42 79 74 65 73 |......to|talBytes|
|00001a00| 20 2d 2d 3b 0d 09 09 09 | 09 66 69 6c 65 73 41 72 | --;....|.filesAr|
|00001a10| 65 49 64 65 6e 74 69 63 | 61 6c 20 3d 20 46 41 4c |eIdentic|al = FAL|
|00001a20| 53 45 3b 0d 09 09 09 09 | 69 66 20 28 6e 65 77 46 |SE;.....|if (newF|
|00001a30| 69 6c 65 2e 62 75 66 66 | 65 72 65 64 5f 63 68 61 |ile.buff|ered_cha|
|00001a40| 72 73 20 3d 3d 20 6f 6c | 64 46 69 6c 65 2e 62 75 |rs == ol|dFile.bu|
|00001a50| 66 66 65 72 65 64 5f 63 | 68 61 72 73 20 26 26 0d |ffered_c|hars &&.|
|00001a60| 09 09 09 09 09 20 20 6e | 65 77 46 69 6c 65 2e 6d |..... n|ewFile.m|
|00001a70| 69 73 73 69 6e 67 5f 6e | 65 77 6c 69 6e 65 20 3d |issing_n|ewline =|
|00001a80| 3d 20 6f 6c 64 46 69 6c | 65 2e 6d 69 73 73 69 6e |= oldFil|e.missin|
|00001a90| 67 5f 6e 65 77 6c 69 6e | 65 29 0d 09 09 09 09 09 |g_newlin|e)......|
|00001aa0| 66 69 6c 65 73 41 72 65 | 49 64 65 6e 74 69 63 61 |filesAre|Identica|
|00001ab0| 6c 20 3d 20 6d 65 6d 63 | 6d 70 20 28 6e 65 77 46 |l = memc|mp (newF|
|00001ac0| 69 6c 65 2e 62 75 66 66 | 65 72 2c 20 6f 6c 64 46 |ile.buff|er, oldF|
|00001ad0| 69 6c 65 2e 62 75 66 66 | 65 72 2c 20 74 6f 74 61 |ile.buff|er, tota|
|00001ae0| 6c 42 79 74 65 73 29 20 | 3d 3d 20 30 3b 0d 09 09 |lBytes) |== 0;...|
|00001af0| 09 09 63 68 61 72 50 74 | 72 20 3d 20 28 75 6e 73 |..charPt|r = (uns|
|00001b00| 69 67 6e 65 64 20 63 68 | 61 72 20 2a 29 20 6e 65 |igned ch|ar *) ne|
|00001b10| 77 46 69 6c 65 2e 62 75 | 66 66 65 72 3b 0d 09 09 |wFile.bu|ffer;...|
|00001b20| 09 09 69 66 20 28 66 69 | 6c 65 73 41 72 65 49 64 |..if (fi|lesAreId|
|00001b30| 65 6e 74 69 63 61 6c 29 | 20 7b 0d 09 09 09 09 09 |entical)| {......|
|00001b40| 64 69 66 66 65 72 65 6e | 63 65 43 68 61 72 20 3d |differen|ceChar =|
|00001b50| 20 27 20 27 3b 0d 09 09 | 09 09 09 63 6f 75 6e 74 | ' ';...|...count|
|00001b60| 20 3d 20 74 6f 74 61 6c | 42 79 74 65 73 3b 0d 09 | = total|Bytes;..|
|00001b70| 09 09 09 09 77 68 69 6c | 65 20 28 63 6f 75 6e 74 |....whil|e (count|
|00001b80| 2d 2d 20 3e 20 30 29 0d | 09 09 09 09 09 09 68 61 |-- > 0).|......ha|
|00001b90| 73 68 56 61 6c 75 65 20 | 3d 20 48 41 53 48 20 28 |shValue |= HASH (|
|00001ba0| 68 61 73 68 56 61 6c 75 | 65 2c 20 2a 63 68 61 72 |hashValu|e, *char|
|00001bb0| 50 74 72 2b 2b 29 3b 0d | 09 09 09 09 7d 20 65 6c |Ptr++);.|....} el|
|00001bc0| 73 65 20 7b 0d 09 09 09 | 09 09 64 69 66 66 65 72 |se {....|..differ|
|00001bd0| 65 6e 63 65 43 68 61 72 | 20 3d 20 27 2a 27 3b 0d |enceChar| = '*';.|
|00001be0| 09 09 09 09 09 65 78 69 | 74 53 74 61 74 75 73 20 |.....exi|tStatus |
|00001bf0| 3d 20 45 58 49 54 5f 46 | 41 49 4c 55 52 45 3b 0d |= EXIT_F|AILURE;.|
|00001c00| 09 09 09 09 09 70 72 69 | 6e 74 66 20 28 22 48 25 |.....pri|ntf ("H%|
|00001c10| 64 5c 6e 22 2c 20 28 74 | 6f 74 61 6c 42 79 74 65 |d\n", (t|otalByte|
|00001c20| 73 20 2b 20 28 48 45 58 | 5f 4c 49 4e 45 5f 4c 45 |s + (HEX|_LINE_LE|
|00001c30| 4e 47 54 48 20 2d 31 29 | 29 20 2f 20 48 45 58 5f |NGTH -1)|) / HEX_|
|00001c40| 4c 49 4e 45 5f 4c 45 4e | 47 54 48 29 3b 0d 09 09 |LINE_LEN|GTH);...|
|00001c50| 09 09 09 63 6f 75 6e 74 | 20 3d 20 30 3b 0d 09 09 |...count| = 0;...|
|00001c60| 09 09 09 77 68 69 6c 65 | 20 28 63 6f 75 6e 74 20 |...while| (count |
|00001c70| 3c 20 74 6f 74 61 6c 42 | 79 74 65 73 29 20 7b 0d |< totalB|ytes) {.|
|00001c80| 09 09 09 09 09 09 74 68 | 65 43 68 61 72 20 3d 20 |......th|eChar = |
|00001c90| 2a 63 68 61 72 50 74 72 | 2b 2b 3b 0d 09 09 09 09 |*charPtr|++;.....|
|00001ca0| 09 09 68 61 73 68 56 61 | 6c 75 65 20 3d 20 48 41 |..hashVa|lue = HA|
|00001cb0| 53 48 20 28 68 61 73 68 | 56 61 6c 75 65 2c 20 74 |SH (hash|Value, t|
|00001cc0| 68 65 43 68 61 72 29 3b | 0d 09 09 09 09 09 09 68 |heChar);|.......h|
|00001cd0| 65 78 44 69 67 69 74 20 | 3d 20 28 74 68 65 43 68 |exDigit |= (theCh|
|00001ce0| 61 72 20 3e 3e 20 34 29 | 20 26 20 30 58 30 46 3b |ar >> 4)| & 0X0F;|
|00001cf0| 0d 09 09 09 09 09 09 69 | 66 20 28 68 65 78 44 69 |.......i|f (hexDi|
|00001d00| 67 69 74 20 3c 20 31 30 | 29 0d 09 09 09 09 09 09 |git < 10|).......|
|00001d10| 09 68 65 78 44 69 67 69 | 74 20 2b 3d 20 27 30 27 |.hexDigi|t += '0'|
|00001d20| 3b 0d 09 09 09 09 09 09 | 65 6c 73 65 0d 09 09 09 |;.......|else....|
|00001d30| 09 09 09 09 68 65 78 44 | 69 67 69 74 20 2b 3d 20 |....hexD|igit += |
|00001d40| 27 41 27 20 2d 20 31 30 | 3b 0d 09 09 09 09 09 09 |'A' - 10|;.......|
|00001d50| 70 75 74 63 68 61 72 20 | 28 68 65 78 44 69 67 69 |putchar |(hexDigi|
|00001d60| 74 29 3b 0d 09 09 09 09 | 09 09 68 65 78 44 69 67 |t);.....|..hexDig|
|00001d70| 69 74 20 3d 20 74 68 65 | 43 68 61 72 20 26 20 30 |it = the|Char & 0|
|00001d80| 58 30 46 3b 0d 09 09 09 | 09 09 09 69 66 20 28 68 |X0F;....|...if (h|
|00001d90| 65 78 44 69 67 69 74 20 | 3c 3d 20 39 29 0d 09 09 |exDigit |<= 9)...|
|00001da0| 09 09 09 09 09 68 65 78 | 44 69 67 69 74 20 2b 3d |.....hex|Digit +=|
|00001db0| 20 27 30 27 3b 0d 09 09 | 09 09 09 09 65 6c 73 65 | '0';...|....else|
|00001dc0| 0d 09 09 09 09 09 09 09 | 68 65 78 44 69 67 69 74 |........|hexDigit|
|00001dd0| 20 2b 3d 20 27 41 27 20 | 2d 20 31 30 3b 0d 09 09 | += 'A' |- 10;...|
|00001de0| 09 09 09 09 70 75 74 63 | 68 61 72 20 28 68 65 78 |....putc|har (hex|
|00001df0| 44 69 67 69 74 29 3b 0d | 09 09 09 09 09 09 63 6f |Digit);.|......co|
|00001e00| 75 6e 74 20 2b 2b 3b 0d | 09 09 09 09 09 09 69 66 |unt ++;.|......if|
|00001e10| 20 28 63 6f 75 6e 74 20 | 25 20 48 45 58 5f 4c 49 | (count |% HEX_LI|
|00001e20| 4e 45 5f 4c 45 4e 47 54 | 48 20 3d 3d 20 30 29 0d |NE_LENGT|H == 0).|
|00001e30| 09 09 09 09 09 09 09 70 | 75 74 63 68 61 72 20 28 |.......p|utchar (|
|00001e40| 27 5c 6e 27 29 3b 0d 09 | 09 09 09 09 7d 0d 09 09 |'\n');..|....}...|
|00001e50| 09 09 09 69 66 20 28 63 | 6f 75 6e 74 20 25 20 48 |...if (c|ount % H|
|00001e60| 45 58 5f 4c 49 4e 45 5f | 4c 45 4e 47 54 48 20 21 |EX_LINE_|LENGTH !|
|00001e70| 3d 20 30 29 0d 09 09 09 | 09 09 09 70 75 74 63 68 |= 0)....|...putch|
|00001e80| 61 72 20 28 27 5c 6e 27 | 29 3b 0d 09 09 09 09 7d |ar ('\n'|);.....}|
|00001e90| 0d 09 09 09 09 70 72 69 | 6e 74 66 20 28 22 68 25 |.....pri|ntf ("h%|
|00001ea0| 64 5c 6e 22 2c 20 68 61 | 73 68 56 61 6c 75 65 29 |d\n", ha|shValue)|
|00001eb0| 3b 0d 09 09 09 09 68 61 | 73 68 56 61 6c 75 65 20 |;.....ha|shValue |
|00001ec0| 3d 20 30 3b 0d 09 09 09 | 09 66 70 72 69 6e 74 66 |= 0;....|.fprintf|
|00001ed0| 20 28 73 74 64 65 72 72 | 2c 20 22 20 20 20 20 20 | (stderr|, " |
|00001ee0| 20 20 20 20 20 20 20 20 | 20 20 20 42 49 4e 41 52 | | BINAR|
|00001ef0| 59 20 46 49 4c 45 20 25 | 63 25 73 5c 6e 22 2c 20 |Y FILE %|c%s\n", |
|00001f00| 64 69 66 66 65 72 65 6e | 63 65 43 68 61 72 2c 20 |differen|ceChar, |
|00001f10| 70 61 74 68 4e 65 77 4e | 61 6d 65 50 74 72 29 3b |pathNewN|amePtr);|
|00001f20| 0d 09 09 09 09 66 72 65 | 65 46 69 6c 65 20 28 26 |.....fre|eFile (&|
|00001f30| 6f 6c 64 46 69 6c 65 29 | 3b 0d 09 09 09 09 66 72 |oldFile)|;.....fr|
|00001f40| 65 65 46 69 6c 65 20 28 | 26 6e 65 77 46 69 6c 65 |eeFile (|&newFile|
|00001f50| 29 3b 0d 09 09 09 7d 0d | 09 09 09 62 72 65 61 6b |);....}.|...break|
|00001f60| 3b 0d 09 09 63 61 73 65 | 20 28 54 45 58 54 5f 54 |;...case| (TEXT_T|
|00001f70| 59 50 45 29 3a 0d 09 09 | 09 50 72 69 6e 74 50 61 |YPE):...|.PrintPa|
|00001f80| 74 68 53 75 66 66 69 78 | 20 28 27 66 27 2c 20 70 |thSuffix| ('f', p|
|00001f90| 61 74 68 4e 65 77 4e 61 | 6d 65 50 74 72 29 3b 0d |athNewNa|mePtr);.|
|00001fa0| 09 09 09 62 7a 65 72 6f | 20 28 26 6e 65 77 46 69 |...bzero| (&newFi|
|00001fb0| 6c 65 2c 20 73 69 7a 65 | 6f 66 20 28 73 74 72 75 |le, size|of (stru|
|00001fc0| 63 74 20 66 69 6c 65 5f | 64 61 74 61 29 29 3b 0d |ct file_|data));.|
|00001fd0| 09 09 09 62 7a 65 72 6f | 20 28 26 6f 6c 64 46 69 |...bzero| (&oldFi|
|00001fe0| 6c 65 2c 20 73 69 7a 65 | 6f 66 20 28 73 74 72 75 |le, size|of (stru|
|00001ff0| 63 74 20 66 69 6c 65 5f | 64 61 74 61 29 29 3b 0d |ct file_|data));.|
|00002000| 09 09 09 6e 65 77 46 69 | 6c 65 2e 6e 61 6d 65 50 |...newFi|le.nameP|
|00002010| 74 72 20 3d 20 70 61 74 | 68 4e 65 77 4e 61 6d 65 |tr = pat|hNewName|
|00002020| 50 74 72 3b 0d 09 09 09 | 6e 65 77 46 69 6c 65 2e |Ptr;....|newFile.|
|00002030| 64 65 73 63 20 3d 20 66 | 6f 70 65 6e 20 28 70 61 |desc = f|open (pa|
|00002040| 74 68 4e 65 77 4e 61 6d | 65 50 74 72 2c 20 22 72 |thNewNam|ePtr, "r|
|00002050| 22 29 3b 0d 09 09 09 69 | 66 20 28 6e 65 77 46 69 |");....i|f (newFi|
|00002060| 6c 65 2e 64 65 73 63 20 | 3d 3d 20 4e 55 4c 4c 29 |le.desc |== NULL)|
|00002070| 0d 09 09 09 09 45 72 72 | 6f 72 57 69 74 68 53 74 |.....Err|orWithSt|
|00002080| 72 69 6e 67 41 72 67 75 | 6d 65 6e 74 20 28 43 41 |ringArgu|ment (CA|
|00002090| 4e 54 5f 4f 50 45 4e 5f | 46 49 4c 45 2c 20 70 61 |NT_OPEN_|FILE, pa|
|000020a0| 74 68 4e 65 77 4e 61 6d | 65 50 74 72 29 3b 0d 09 |thNewNam|ePtr);..|
|000020b0| 09 09 6f 6c 64 46 69 6c | 65 2e 6e 61 6d 65 50 74 |..oldFil|e.namePt|
|000020c0| 72 20 3d 20 70 61 74 68 | 4f 6c 64 4e 61 6d 65 50 |r = path|OldNameP|
|000020d0| 74 72 3b 0d 09 09 09 6f | 6c 64 46 69 6c 65 2e 64 |tr;....o|ldFile.d|
|000020e0| 65 73 63 20 3d 20 66 6f | 70 65 6e 20 28 70 61 74 |esc = fo|pen (pat|
|000020f0| 68 4f 6c 64 4e 61 6d 65 | 50 74 72 2c 20 22 72 22 |hOldName|Ptr, "r"|
|00002100| 29 3b 0d 0d 09 09 09 64 | 69 66 66 5f 32 5f 66 69 |);.....d|iff_2_fi|
|00002110| 6c 65 73 20 28 26 6f 6c | 64 46 69 6c 65 2c 20 26 |les (&ol|dFile, &|
|00002120| 6e 65 77 46 69 6c 65 29 | 3b 0d 09 09 09 64 69 66 |newFile)|;....dif|
|00002130| 66 65 72 65 6e 63 65 43 | 68 61 72 20 3d 20 27 20 |ferenceC|har = ' |
|00002140| 27 3b 0d 09 09 09 66 69 | 6c 65 73 41 72 65 49 64 |';....fi|lesAreId|
|00002150| 65 6e 74 69 63 61 6c 20 | 3d 20 6e 65 77 46 69 6c |entical |= newFil|
|00002160| 65 2e 73 63 72 69 70 74 | 50 74 72 20 3d 3d 20 4e |e.script|Ptr == N|
|00002170| 55 4c 4c 20 26 26 20 28 | 6f 6c 64 46 69 6c 65 2e |ULL && (|oldFile.|
|00002180| 62 75 66 66 65 72 65 64 | 5f 6c 69 6e 65 73 20 3d |buffered|_lines =|
|00002190| 3d 20 6e 65 77 46 69 6c | 65 2e 62 75 66 66 65 72 |= newFil|e.buffer|
|000021a0| 65 64 5f 6c 69 6e 65 73 | 29 3b 0d 09 09 09 69 66 |ed_lines|);....if|
|000021b0| 20 28 21 66 69 6c 65 73 | 41 72 65 49 64 65 6e 74 | (!files|AreIdent|
|000021c0| 69 63 61 6c 29 20 7b 0d | 09 09 09 09 64 69 66 66 |ical) {.|....diff|
|000021d0| 65 72 65 6e 63 65 43 68 | 61 72 20 3d 20 27 2a 27 |erenceCh|ar = '*'|
|000021e0| 3b 0d 09 09 09 09 65 78 | 69 74 53 74 61 74 75 73 |;.....ex|itStatus|
|000021f0| 20 3d 20 45 58 49 54 5f | 46 41 49 4c 55 52 45 3b | = EXIT_|FAILURE;|
|00002200| 0d 09 09 09 7d 0d 09 09 | 09 70 72 69 6e 74 5f 72 |....}...|.print_r|
|00002210| 63 73 5f 73 63 72 69 70 | 74 20 28 26 6f 6c 64 46 |cs_scrip|t (&oldF|
|00002220| 69 6c 65 2c 20 26 6e 65 | 77 46 69 6c 65 29 3b 0d |ile, &ne|wFile);.|
|00002230| 09 09 09 2f 2a 0d 09 09 | 09 20 2a 20 50 72 69 6e |.../*...|. * Prin|
|00002240| 74 20 74 68 65 20 68 61 | 73 68 20 66 6f 72 20 6e |t the ha|sh for n|
|00002250| 65 77 46 69 6c 65 2e 20 | 20 57 65 20 75 73 65 20 |ewFile. | We use |
|00002260| 61 20 6b 6e 6f 77 6e 20 | 76 61 6c 75 65 20 66 6f |a known |value fo|
|00002270| 72 20 27 5c 6e 27 20 73 | 69 6e 63 65 20 69 74 20 |r '\n' s|ince it |
|00002280| 76 61 72 69 65 73 20 62 | 65 74 77 65 65 6e 20 6d |varies b|etween m|
|00002290| 61 63 68 69 6e 65 73 2e | 0d 09 09 09 20 2a 2f 0d |achines.|.... */.|
|000022a0| 09 09 09 63 68 61 72 50 | 74 72 20 3d 20 28 75 6e |...charP|tr = (un|
|000022b0| 73 69 67 6e 65 64 20 63 | 68 61 72 20 2a 29 20 6e |signed c|har *) n|
|000022c0| 65 77 46 69 6c 65 2e 62 | 75 66 66 65 72 3b 0d 09 |ewFile.b|uffer;..|
|000022d0| 09 09 63 6f 75 6e 74 20 | 3d 20 6e 65 77 46 69 6c |..count |= newFil|
|000022e0| 65 2e 62 75 66 66 65 72 | 65 64 5f 63 68 61 72 73 |e.buffer|ed_chars|
|000022f0| 3b 0d 09 09 09 69 66 20 | 28 6e 65 77 46 69 6c 65 |;....if |(newFile|
|00002300| 2e 6d 69 73 73 69 6e 67 | 5f 6e 65 77 6c 69 6e 65 |.missing|_newline|
|00002310| 29 0d 09 09 09 09 63 6f | 75 6e 74 20 2d 2d 3b 0d |).....co|unt --;.|
|00002320| 09 09 09 6e 6f 6e 41 53 | 43 49 49 43 68 61 72 73 |...nonAS|CIIChars|
|00002330| 20 3d 20 30 3b 0d 09 09 | 09 77 68 69 6c 65 20 28 | = 0;...|.while (|
|00002340| 63 6f 75 6e 74 20 3e 20 | 30 29 20 7b 0d 09 09 09 |count > |0) {....|
|00002350| 09 74 68 65 43 68 61 72 | 20 3d 20 2a 63 68 61 72 |.theChar| = *char|
|00002360| 50 74 72 2b 2b 3b 0d 09 | 09 09 09 69 66 20 28 74 |Ptr++;..|...if (t|
|00002370| 68 65 43 68 61 72 20 3d | 3d 20 27 5c 6e 27 29 0d |heChar =|= '\n').|
|00002380| 09 09 09 09 09 74 68 65 | 43 68 61 72 20 3d 20 31 |.....the|Char = 1|
|00002390| 33 3b 0d 09 09 09 09 68 | 61 73 68 56 61 6c 75 65 |3;.....h|ashValue|
|000023a0| 20 3d 20 48 41 53 48 20 | 28 68 61 73 68 56 61 6c | = HASH |(hashVal|
|000023b0| 75 65 2c 20 74 68 65 43 | 68 61 72 29 3b 0d 09 09 |ue, theC|har);...|
|000023c0| 09 09 69 66 20 28 28 75 | 6e 73 69 67 6e 65 64 20 |..if ((u|nsigned |
|000023d0| 63 68 61 72 29 20 74 68 | 65 43 68 61 72 20 3e 20 |char) th|eChar > |
|000023e0| 31 32 37 29 0d 09 09 09 | 09 09 6e 6f 6e 41 53 43 |127)....|..nonASC|
|000023f0| 49 49 43 68 61 72 73 2b | 2b 3b 0d 09 09 09 09 63 |IIChars+|+;.....c|
|00002400| 6f 75 6e 74 20 2d 2d 3b | 0d 09 09 09 7d 0d 09 09 |ount --;|....}...|
|00002410| 09 70 72 69 6e 74 66 20 | 28 22 68 25 64 5c 6e 22 |.printf |("h%d\n"|
|00002420| 2c 20 68 61 73 68 56 61 | 6c 75 65 29 3b 0d 09 09 |, hashVa|lue);...|
|00002430| 09 68 61 73 68 56 61 6c | 75 65 20 3d 20 30 3b 0d |.hashVal|ue = 0;.|
|00002440| 09 09 09 69 66 20 28 6e | 6f 6e 41 53 43 49 49 43 |...if (n|onASCIIC|
|00002450| 68 61 72 73 20 3d 3d 20 | 30 29 0d 09 09 09 09 66 |hars == |0).....f|
|00002460| 70 72 69 6e 74 66 20 28 | 73 74 64 65 72 72 2c 20 |printf (|stderr, |
|00002470| 22 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |" | |
|00002480| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 22 29 3b | | ");|
|00002490| 0d 09 09 09 65 6c 73 65 | 0d 09 09 09 09 66 70 72 |....else|.....fpr|
|000024a0| 69 6e 74 66 20 28 73 74 | 64 65 72 72 2c 20 22 25 |intf (st|derr, "%|
|000024b0| 36 64 20 4e 4f 4e 2d 41 | 53 43 49 49 20 43 48 41 |6d NON-A|SCII CHA|
|000024c0| 52 41 43 54 45 52 53 20 | 22 2c 20 6e 6f 6e 41 53 |RACTERS |", nonAS|
|000024d0| 43 49 49 43 68 61 72 73 | 29 3b 0d 09 09 09 66 70 |CIIChars|);....fp|
|000024e0| 72 69 6e 74 66 20 28 73 | 74 64 65 72 72 2c 20 22 |rintf (s|tderr, "|
|000024f0| 25 63 25 73 5c 6e 22 2c | 20 64 69 66 66 65 72 65 |%c%s\n",| differe|
|00002500| 6e 63 65 43 68 61 72 2c | 20 70 61 74 68 4e 65 77 |nceChar,| pathNew|
|00002510| 4e 61 6d 65 50 74 72 29 | 3b 0d 09 09 09 66 72 65 |NamePtr)|;....fre|
|00002520| 65 46 69 6c 65 20 28 26 | 6f 6c 64 46 69 6c 65 29 |eFile (&|oldFile)|
|00002530| 3b 0d 09 09 09 66 72 65 | 65 46 69 6c 65 20 28 26 |;....fre|eFile (&|
|00002540| 6e 65 77 46 69 6c 65 29 | 3b 0d 09 09 09 62 72 65 |newFile)|;....bre|
|00002550| 61 6b 3b 0d 09 7d 0d 09 | 64 69 66 66 50 61 74 68 |ak;..}..|diffPath|
|00002560| 44 65 70 74 68 2d 2d 3b | 0d 7d 0d 0d 09 76 6f 69 |Depth--;|.}...voi|
|00002570| 64 0d 09 50 72 69 6e 74 | 50 61 74 68 53 75 66 66 |d..Print|PathSuff|
|00002580| 69 78 20 28 63 68 61 72 | 20 63 6f 6d 6d 61 6e 64 |ix (char| command|
|00002590| 43 68 61 72 2c 20 63 6f | 6e 73 74 20 63 68 61 72 |Char, co|nst char|
|000025a0| 20 2a 70 61 74 68 50 74 | 72 29 0d 09 2f 2a 0d 09 | *pathPt|r)../*..|
|000025b0| 20 2a 20 50 72 69 6e 74 | 73 20 74 68 65 20 63 6f | * Print|s the co|
|000025c0| 6d 6d 61 6e 64 20 63 68 | 61 72 61 63 74 65 72 20 |mmand ch|aracter |
|000025d0| 61 70 70 65 6e 64 65 64 | 20 62 79 20 74 68 65 20 |appended| by the |
|000025e0| 73 75 66 66 69 78 20 6f | 66 20 70 61 74 68 50 74 |suffix o|f pathPt|
|000025f0| 72 2e 20 20 0d 09 20 2a | 2f 0d 09 7b 0d 09 09 63 |r. .. *|/..{...c|
|00002600| 6f 6e 73 74 20 63 68 61 | 72 20 2a 73 75 66 66 69 |onst cha|r *suffi|
|00002610| 78 50 74 72 3b 0d 0d 09 | 09 69 66 20 28 64 69 66 |xPtr;...|.if (dif|
|00002620| 66 50 61 74 68 44 65 70 | 74 68 20 3e 20 31 29 20 |fPathDep|th > 1) |
|00002630| 7b 0d 09 09 09 73 75 66 | 66 69 78 50 74 72 20 3d |{....suf|fixPtr =|
|00002640| 20 73 74 72 72 63 68 72 | 20 28 70 61 74 68 50 74 | strrchr| (pathPt|
|00002650| 72 2c 20 44 49 52 45 43 | 54 4f 52 59 5f 43 48 41 |r, DIREC|TORY_CHA|
|00002660| 52 29 3b 0d 09 09 09 69 | 66 20 28 73 75 66 66 69 |R);....i|f (suffi|
|00002670| 78 50 74 72 20 21 3d 20 | 4e 55 4c 4c 29 0d 09 09 |xPtr != |NULL)...|
|00002680| 09 09 73 75 66 66 69 78 | 50 74 72 20 2b 2b 3b 0d |..suffix|Ptr ++;.|
|00002690| 09 09 09 65 6c 73 65 0d | 09 09 09 09 73 75 66 66 |...else.|....suff|
|000026a0| 69 78 50 74 72 20 3d 20 | 70 61 74 68 50 74 72 3b |ixPtr = |pathPtr;|
|000026b0| 0d 09 09 09 70 72 69 6e | 74 66 20 28 22 25 63 25 |....prin|tf ("%c%|
|000026c0| 73 5c 6e 22 2c 20 63 6f | 6d 6d 61 6e 64 43 68 61 |s\n", co|mmandCha|
|000026d0| 72 2c 20 73 75 66 66 69 | 78 50 74 72 29 3b 0d 09 |r, suffi|xPtr);..|
|000026e0| 09 7d 0d 09 7d 0d 0d 69 | 6e 74 0d 5f 5f 63 64 65 |.}..}..i|nt.__cde|
|000026f0| 63 6c 20 6d 61 69 6e 20 | 28 69 6e 74 20 61 72 67 |cl main |(int arg|
|00002700| 63 2c 20 63 6f 6e 73 74 | 20 63 68 61 72 20 2a 2a |c, const| char **|
|00002710| 61 72 67 76 29 0d 7b 0d | 09 23 69 66 64 65 66 20 |argv).{.|.#ifdef |
|00002720| 44 46 5f 44 45 42 55 47 | 0d 09 09 45 43 55 6e 73 |DF_DEBUG|...ECUns|
|00002730| 33 32 09 09 61 6c 6c 6f | 63 61 74 65 64 42 79 74 |32..allo|catedByt|
|00002740| 65 73 3b 0d 09 23 65 6e | 64 69 66 0d 09 63 6f 6e |es;..#en|dif..con|
|00002750| 73 74 20 63 68 61 72 20 | 2a 70 61 74 68 4f 6c 64 |st char |*pathOld|
|00002760| 4e 61 6d 65 50 74 72 3b | 0d 09 63 6f 6e 73 74 20 |NamePtr;|..const |
|00002770| 63 68 61 72 20 2a 70 61 | 74 68 4e 65 77 4e 61 6d |char *pa|thNewNam|
|00002780| 65 50 74 72 3b 0d 0d 09 | 68 61 73 68 56 61 6c 75 |ePtr;...|hashValu|
|00002790| 65 20 3d 20 30 3b 0d 09 | 43 6f 6d 6d 61 6e 64 4c |e = 0;..|CommandL|
|000027a0| 69 6e 65 20 28 61 72 67 | 63 2c 20 61 72 67 76 2c |ine (arg|c, argv,|
|000027b0| 20 26 70 61 74 68 4f 6c | 64 4e 61 6d 65 50 74 72 | &pathOl|dNamePtr|
|000027c0| 2c 20 26 70 61 74 68 4e | 65 77 4e 61 6d 65 50 74 |, &pathN|ewNamePt|
|000027d0| 72 29 3b 0d 09 70 72 69 | 6e 74 66 20 28 22 25 73 |r);..pri|ntf ("%s|
|000027e0| 23 20 56 65 72 73 69 6f | 6e 20 25 73 5c 6e 23 20 |# Versio|n %s\n# |
|000027f0| 44 69 66 66 65 72 65 6e | 63 65 20 25 73 20 25 73 |Differen|ce %s %s|
|00002800| 5c 6e 22 2c 0d 09 09 09 | 09 09 44 49 46 46 45 52 |\n",....|..DIFFER|
|00002810| 45 4e 43 45 5f 53 43 52 | 49 50 54 5f 53 54 41 52 |ENCE_SCR|IPT_STAR|
|00002820| 54 5f 53 54 52 49 4e 47 | 2c 0d 09 09 09 09 09 56 |T_STRING|,......V|
|00002830| 45 52 53 49 4f 4e 5f 53 | 54 52 49 4e 47 2c 0d 09 |ERSION_S|TRING,..|
|00002840| 09 09 09 09 70 61 74 68 | 4f 6c 64 4e 61 6d 65 50 |....path|OldNameP|
|00002850| 74 72 2c 0d 09 09 09 09 | 09 70 61 74 68 4e 65 77 |tr,.....|.pathNew|
|00002860| 4e 61 6d 65 50 74 72 29 | 3b 0d 09 44 69 66 66 50 |NamePtr)|;..DiffP|
|00002870| 61 74 68 73 20 28 70 61 | 74 68 4f 6c 64 4e 61 6d |aths (pa|thOldNam|
|00002880| 65 50 74 72 2c 20 70 61 | 74 68 4e 65 77 4e 61 6d |ePtr, pa|thNewNam|
|00002890| 65 50 74 72 29 3b 0d 09 | 70 72 69 6e 74 66 20 28 |ePtr);..|printf (|
|000028a0| 22 68 25 64 5c 6e 22 2c | 20 68 61 73 68 56 61 6c |"h%d\n",| hashVal|
|000028b0| 75 65 29 3b 0d 09 68 61 | 73 68 56 61 6c 75 65 20 |ue);..ha|shValue |
|000028c0| 3d 20 30 3b 0d 0d 09 23 | 69 66 64 65 66 20 44 46 |= 0;...#|ifdef DF|
|000028d0| 5f 44 45 42 55 47 0d 09 | 09 61 6c 6c 6f 63 61 74 |_DEBUG..|.allocat|
|000028e0| 65 64 42 79 74 65 73 20 | 3d 20 45 43 44 65 62 75 |edBytes |= ECDebu|
|000028f0| 67 50 72 69 6e 74 4d 65 | 6d 6f 72 79 55 73 61 67 |gPrintMe|moryUsag|
|00002900| 65 20 28 73 74 64 65 72 | 72 29 3b 0d 09 09 69 66 |e (stder|r);...if|
|00002910| 20 28 61 6c 6c 6f 63 61 | 74 65 64 42 79 74 65 73 | (alloca|tedBytes|
|00002920| 20 21 3d 20 30 29 20 7b | 0d 09 09 09 66 70 72 69 | != 0) {|....fpri|
|00002930| 6e 74 66 20 28 73 74 64 | 65 72 72 2c 20 22 5c 6e |ntf (std|err, "\n|
|00002940| 5c 6e 22 0d 09 09 09 09 | 09 09 09 09 09 09 09 20 |\n".....|....... |
|00002950| 22 4d 45 4d 4f 52 59 20 | 4c 45 41 4b 21 20 20 4d |"MEMORY |LEAK! M|
|00002960| 45 4d 4f 52 59 20 4c 45 | 41 4b 21 20 20 4d 45 4d |EMORY LE|AK! MEM|
|00002970| 4f 52 59 20 4c 45 41 4b | 21 20 20 4d 45 4d 4f 52 |ORY LEAK|! MEMOR|
|00002980| 59 20 4c 45 41 4b 21 5c | 6e 22 0d 09 09 09 09 09 |Y LEAK!\|n"......|
|00002990| 09 09 09 09 09 09 20 22 | 4d 45 4d 4f 52 59 20 4c |...... "|MEMORY L|
|000029a0| 45 41 4b 21 20 20 4d 45 | 4d 4f 52 59 20 4c 45 41 |EAK! ME|MORY LEA|
|000029b0| 4b 21 20 20 4d 45 4d 4f | 52 59 20 4c 45 41 4b 21 |K! MEMO|RY LEAK!|
|000029c0| 20 20 4d 45 4d 4f 52 59 | 20 4c 45 41 4b 21 5c 6e | MEMORY| LEAK!\n|
|000029d0| 22 0d 09 09 09 09 09 09 | 09 09 09 09 09 20 22 4d |".......|..... "M|
|000029e0| 45 4d 4f 52 59 20 4c 45 | 41 4b 21 20 20 4d 45 4d |EMORY LE|AK! MEM|
|000029f0| 4f 52 59 20 4c 45 41 4b | 21 20 20 4d 45 4d 4f 52 |ORY LEAK|! MEMOR|
|00002a00| 59 20 4c 45 41 4b 21 20 | 20 4d 45 4d 4f 52 59 20 |Y LEAK! | MEMORY |
|00002a10| 4c 45 41 4b 21 5c 6e 22 | 0d 09 09 09 09 09 09 09 |LEAK!\n"|........|
|00002a20| 09 09 09 09 20 22 4d 45 | 4d 4f 52 59 20 4c 45 41 |.... "ME|MORY LEA|
|00002a30| 4b 21 20 20 4d 45 4d 4f | 52 59 20 4c 45 41 4b 21 |K! MEMO|RY LEAK!|
|00002a40| 20 20 4d 45 4d 4f 52 59 | 20 4c 45 41 4b 21 20 20 | MEMORY| LEAK! |
|00002a50| 4d 45 4d 4f 52 59 20 4c | 45 41 4b 21 5c 6e 22 0d |MEMORY L|EAK!\n".|
|00002a60| 09 09 09 09 09 09 09 09 | 09 09 09 20 22 4d 45 4d |........|... "MEM|
|00002a70| 4f 52 59 20 4c 45 41 4b | 21 20 20 4d 45 4d 4f 52 |ORY LEAK|! MEMOR|
|00002a80| 59 20 4c 45 41 4b 21 20 | 20 4d 45 4d 4f 52 59 20 |Y LEAK! | MEMORY |
|00002a90| 4c 45 41 4b 21 20 20 4d | 45 4d 4f 52 59 20 4c 45 |LEAK! M|EMORY LE|
|00002aa0| 41 4b 21 5c 6e 22 0d 09 | 09 09 09 09 09 09 09 09 |AK!\n"..|........|
|00002ab0| 09 09 20 22 5c 6e 5c 6e | 22 29 3b 0d 09 09 7d 0d |.. "\n\n|");...}.|
|00002ac0| 09 23 65 6e 64 69 66 0d | 09 69 66 20 28 65 78 69 |.#endif.|.if (exi|
|00002ad0| 74 53 74 61 74 75 73 20 | 3d 3d 20 45 58 49 54 5f |tStatus |== EXIT_|
|00002ae0| 53 55 43 43 45 53 53 29 | 0d 09 09 66 70 72 69 6e |SUCCESS)|...fprin|
|00002af0| 74 66 20 28 73 74 64 65 | 72 72 2c 20 22 4e 6f 20 |tf (stde|rr, "No |
|00002b00| 64 69 66 66 65 72 65 6e | 63 65 20 62 65 74 77 65 |differen|ce betwe|
|00002b10| 65 6e 20 66 69 6c 65 28 | 73 29 2e 5c 6e 22 29 3b |en file(|s).\n");|
|00002b20| 0d 09 65 6c 73 65 0d 09 | 09 66 70 72 69 6e 74 66 |..else..|.fprintf|
|00002b30| 20 28 73 74 64 65 72 72 | 2c 20 22 46 69 6c 65 28 | (stderr|, "File(|
|00002b40| 73 29 20 6d 61 72 6b 65 | 64 20 5c 22 2a 5c 22 20 |s) marke|d \"*\" |
|00002b50| 64 69 66 66 65 72 2e 5c | 6e 22 29 3b 0d 09 69 66 |differ.\|n");..if|
|00002b60| 20 28 72 65 74 75 72 6e | 45 58 49 54 5f 53 55 43 | (return|EXIT_SUC|
|00002b70| 43 45 53 53 29 0d 09 09 | 65 78 69 74 53 74 61 74 |CESS)...|exitStat|
|00002b80| 75 73 20 3d 20 45 58 49 | 54 5f 53 55 43 43 45 53 |us = EXI|T_SUCCES|
|00002b90| 53 3b 0d 09 72 65 74 75 | 72 6e 20 28 65 78 69 74 |S;..retu|rn (exit|
|00002ba0| 53 74 61 74 75 73 29 3b | 0d 7d 0d 0d 00 00 00 00 |Status);|.}......|
|00002bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c00| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00002c10| 65 72 52 50 74 72 54 79 | 70 65 29 20 74 6f 41 63 |erRPtrTy|pe) toAc|
|00002c20| 74 69 76 65 4d 61 70 29 | 3b 09 09 09 09 09 09 09 |tiveMap)|;.......|
|00002c30| 0c 44 69 66 66 65 72 65 | 6e 63 65 2e 63 65 02 00 |.Differe|nce.ce..|
|00002c40| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 9c 02 80 |..TEXTMP|S ......|
|00002c50| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 9c 02 80 |..TEXTMP|S ......|
|00002c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c70| 00 00 ad 65 d0 a7 00 00 | 2b 2c 00 00 01 ac 09 45 |...e....|+,.....E|
|00002c80| 43 5f 54 4f 5f 50 52 45 | 50 5f 49 56 53 5f 4f 46 |C_TO_PRE|P_IVS_OF|
|00002c90| 20 28 47 2e 6f 62 6a 65 | 63 74 53 74 6f 72 65 2e | (G.obje|ctStore.|
|00002ca0| 74 68 65 44 6f 63 4f 62 | 6a 65 63 74 2c 20 44 6f |theDocOb|ject, Do|
|00002cb0| 63 4f 62 6a 65 63 74 56 | 29 2d 3e 77 68 65 72 65 |cObjectV|)->where|
|00002cc0| 53 61 76 65 64 4d 61 70 | 20 3d 20 77 68 65 72 65 |SavedMap| = where|
|00002cd0| 53 61 76 65 64 3b 0d 7d | 09 2f 2a 09 45 43 53 61 |Saved;.}|./*.ECSa|
|00002ce0| 76 65 09 2a 2f 09 0d 0d | 23 69 66 64 65 66 20 44 |ve.*/...|#ifdef D|
|00002cf0| 46 5f 4d 41 43 48 49 4e | 45 5f 4d 41 43 49 4e 54 |F_MACHIN|E_MACINT|
|00002d00| 00 00 00 1e 00 27 00 00 | 02 ff 02 20 00 27 00 00 |.....'..|... .'..|
|00002d10| 02 ff 02 20 00 00 00 00 | 00 00 00 00 00 00 00 00 |... ....|........|
|00002d20| 00 00 00 00 00 48 00 08 | 53 65 71 75 6f 79 61 68 |.....H..|Sequoyah|
|00002d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d40| 00 00 00 00 00 00 00 00 | 00 03 00 02 00 56 00 00 |........|.....V..|
|00002d50| 02 fc 02 20 00 56 00 00 | 02 fc 02 20 aa 37 4a 1e |... .V..|... .7J.|
|00002d60| 00 00 00 96 00 00 00 96 | 00 00 00 00 01 00 00 00 |........|........|
|00002d70| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 02 24 |.....n..|.n...>.$|
|00002d80| 72 18 12 5e 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |r..^....|.>..MPSR|
|00002d90| 00 01 00 0a 03 f0 ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00002da0| 03 ed ff ff 00 00 00 22 | 00 00 00 00 00 00 00 00 |......."|........|
|00002db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+